<?php
Class Alipay
{
	private function __construct()
	{
		
	}
	public function __destruct()
	{
		
	}
	private function __clone()
	{
		trigger_error( 'system error', E_USER_ERROR );	
	}
	public static  function getInstance(){
        if( !isset( self::$instance ) ){
        	self::$instance = new Alipay();
        }
        return self::$instance;
	}
	public function paynow()
	{
		global $alipay_subject,$alipay_body,$alipay_price,$alipay_quantity;
		echo $alipay_subject,$alipay_body,$alipay_price,$alipay_quantity;
		include ( DIR_CLASS.'lib/alipay/index.php' );
	}
	
	private static $instance;	
}
?>